package top.zsyle.org.domain;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import top.zsyle.basic.domain.BaseDomain;

import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Shop extends BaseDomain {

    private static final long serialVersionUID = 1L;

    @Excel(name="店铺名称", orderNum = "1", width = 30, isImportField = "true_st")
    private String name;
    @Excel(name="电话", orderNum = "2", width = 30, isImportField = "true_st")
    private String tel;
    @Excel(name="创建", orderNum = "3", width = 30, isImportField = "true_st", format = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date registerTime = new Date();
    /**
     * 0.未审核 1.未激活 2.驳回 3.已激活
     */
    @Excel(name="状态", replace = {"待审核_0","待激活_1","驳回_2","待激活_3"}, orderNum = "4", width = 30, isImportField = "true_st")
    private Integer state = 0;
    @Excel(name="地址", orderNum = "5", width = 30, isImportField = "true_st")
    private String address;
    @Excel(name="店铺Logo", orderNum = "6", width = 30, isImportField = "true_st")
    private String logo;

    private Long adminId;
    // 员工对象引用字段，用于接收员工信息
//    private Employee admin;

//    private String name;
//    private String tel;
//    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
//    private Date registerTime;
//    /**
//     * 0.未审核 1.未激活 2.驳回 3.已激活
//     */
//    private Integer state;
//    private String address;
//    private String logo;
//    private Long adminId;

    //本店铺的审核日志集和
    private List<ShopAuditLog> auditLogs;
}
